package com.scuec.tourismwebsite.service;

import com.github.pagehelper.PageInfo;
import com.scuec.tourismwebsite.entity.TouristAttraction;
import org.springframework.http.ResponseEntity;

import java.util.List;
//11
public interface TouristAttractionService {
    //修11
    List<TouristAttraction> findAll();
    ResponseEntity<TouristAttraction> findById(Integer attraction_id);
    ResponseEntity<TouristAttraction> add(TouristAttraction attraction);


    ResponseEntity<TouristAttraction> updateBasicInfo(Integer attraction_id, TouristAttraction attraction);

    ResponseEntity<TouristAttraction> updateDetail(Integer attraction_id, TouristAttraction attraction);

    ResponseEntity<Void> delete(Integer attraction_id);

    PageInfo<TouristAttraction> findAttractionsPages(Integer pageNum, Integer pageSize);

    PageInfo<TouristAttraction> findAttractionsPage(String location, Integer pageNum, Integer pageSize);

    PageInfo<TouristAttraction> searchAttractions(String query, Integer pageNum, Integer pageSize);


    TouristAttraction getAttractionDetailById(Integer attraction_id);
    boolean updatePhoto(Integer attractionId, String photoFileName);


    ResponseEntity<TouristAttraction> update(Integer attractionId, TouristAttraction attraction);
}